<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Login Page</title>
  <!-- 引入 Bootstrap 样式表 -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css">
  <style>
    /* 自定义样式 */
    body {
      background-image: url('http://cdn.qiniu.liyansheng.top/img/d4065f4c62d31362d3b6975e9d7c4f6c.jpg');
      background-size: cover;
      background-repeat: no-repeat;
      height: 100vh;
    }

    .login-container {
      background-color: rgba(255, 255, 255, 0.8);
      border-radius: 10px;
      padding: 20px;
      margin-top: 100px;
    }

    .login-form {
      margin-top: 20px;
    }

    .login-title {
      text-align: center;
      margin-bottom: 20px;
    }
  </style>
</head>

<body>
  <div class="container">
    <div class="row justify-content-center">
      <div class="col-md-4 login-container">
        <h2 class="login-title">图书管理</h2>
        <form class="login-form" th:action="@{/login}" method="post">
          <div class="mb-3">
            <label for="account" class="form-label">账号</label>
            <input type="text" class="form-control" id="account" name="account" placeholder="请输入账号">
          </div>
          <div class="mb-3">
            <label for="password" class="form-label">密码</label>
            <input type="password" class="form-control" id="password" name="password" placeholder="请输入密码">
          </div>
          <div class="text-center">
            <button type="reset" class="btn btn-outline-danger">重置</button>
            <button type="submit" class="btn btn-primary">登录</button>
          </div>
        </form>
      </div>
    </div>
  </div>

  <!-- 引入 Bootstrap 脚本 -->
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>

</html>
